package org.ricks.condition2.test;

import org.ricks.condition2.Condition;

import java.util.List;

public class QuestSystem {
    // 根据配置ID检查玩家是否满足接取条件
    public boolean canAcceptQuest(String playerId, String questId) {
        List<ConditionConfig> acceptConditions = loadAcceptConditions(questId);
        return acceptConditions.stream()
                .map(config -> ConditionParser.parseCondition(playerId, config))
                .allMatch(Condition::isDone);
    }

    private List<ConditionConfig> loadAcceptConditions(String questId) {
        return List.of();
    }
}